Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

ethers: Fix encodeTxForRPC to separately handle 0x and 0x0 #508

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

blukat29
Copy link
Contributor

@blukat29 blukat29 commented Sep 14, 2023

When calling some RPCs (eth_estimateGas, eth_call), the transaction arguments must be properly hexlified.
(https://github.com/klaytn/klaytn/blob/dev/api/tx_args.go#L536)

Zero numeric values must be encoded to "0x0" and
Empty bytes and address values must be "0x".

@blukat29 blukat29 changed the title ehers: Fix encodeTxForRPC to separately handle 0x and 0x0 ethers: Fix encodeTxForRPC to separately handle 0x and 0x0 Sep 14, 2023
@blukat29 blukat29 merged commit dacbc7c into klaytn:dev Sep 15, 2023
@kjeom kjeom mentioned this pull request Sep 25, 2023
@blukat29 blukat29 deleted the fix-encodetxrpc branch October 17, 2023 06:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants